home *** CD-ROM | disk | FTP | other *** search
- '**************************************************************************
- '* VfW 1.0 Runtime Setup
- '* include file for Microsoft Multimedia Publishing
- '**************************************************************************
-
- DECLARE FUNCTION AreAVIFilesInstalled() AS INTEGER
- DECLARE SUB CopyAVIFiles
- DECLARE SUB SetAVIIniFiles
-
- AVIFOROPENERS:
- 'Make sure the startup for the main script is called INIT.
-
- GoTo INIT
-
-
- Sub CopyAVIFiles STATIC
- 'Setting RUNTIME files to be copied
-
- AVISrcDir$ = GetSymbolValue("STF_SRCDIR")
-
- AddSectionFilesToCopyList "VfW Runtime", AVISrcDir$, GetWindowsSysDir()
- End Sub
-
-
- Sub SetAVIIniFiles STATIC
- 'This routine should be run whether or not the files are copied.
- 'This is because the existence of the files on disk is not a
- 'guarantee of correct installation!
-
- 'Updating WIN.INI and SYSTEM.INI
-
- CreateIniKeyValue GetWindowsDir() + "win.ini", "mci extensions", "avi", "AVIVideo", cmoOverwrite
- CreateIniKeyValue GetWindowsDir() + "system.ini", "mci", "AVIVideo", "mciavi.drv", cmoOverwrite
- End Sub
-
-
- '**
- '** Purpose:
- '** Determine if AVI files are already installed
- '** Returns:
- '** True if AVI is installed, FALSE if not.
- '*************************************************************************
- FUNCTION AreAVIFilesInstalled() STATIC AS INTEGER
- SysDir$ = GetWindowsSysDir()
-
- 'Innocent until proven guilty!
-
- AreAVIFilesInstalled = 1
-
- If DoesFileExist (SysDir$ + "mciavi.drv", femExists) = 0 Then
- AreAVIFilesInstalled = 0
- End If
-
- If DoesFileExist (SysDir$ + "msvideo.dll", femExists) = 0 Then
- AreAVIFilesInstalled = 0
- End If
-
- END FUNCTION
-
-